package com.ktwlsoft.archivemanage.domain.dao.repository.customAnalysis;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import com.ktwlsoft.archivemanage.domain.dao.entity.customAnalysis.AnalysisDimension;

/**
 * analysis_dimension--维度
 *
 * @author zhuhe on 2019-11-27 15:32:02
 * @version 1.0
 */
@Mapper
public interface IAnalysisDimensionMapper {
	
	/**
	 * 查询列表 on 2019-11-27 15:32:02
	 * @param analysisDimension analysisDimension
	 * @return List<AnalysisDimension>
	 */
	List<AnalysisDimension> findList(AnalysisDimension analysisDimension);
	
	
	/**
	 * 根据id查询信息 on 2019-11-27 15:32:02
	 * @param id id
	 * @return AnalysisDimension
	 */
	AnalysisDimension getById(Long id);

	/**
	 * 根据分析id查询数据 on 2019/11/28 9:32
	 *
	 * @param analysisId analysisId
	 * @return List<AnalysisDimension>
	 */
	List<AnalysisDimension> getByAnalysisId(Long analysisId);
	
	/**
	 * 根据id删除信息 on 2019-11-27 15:32:02
	 * @param id id
	 * @return int
	 */
	int deleteById(Long id);
	
	/**
	  * 根据自助分析id删除信息 on 2019/11/27 16:22
	  *
	  * @param analysisId analysisId
	  * @return int
	  */
	int deleteByAnalysisId(Long analysisId);
	
	/**
	 * 根据id集合批量删除信息 on 2019-11-27 15:32:02
	 * @param ids ids
	 * @return int
	 */
	int deleteByIds(List<Long> ids);

	/**
	 * 插入 on 2019-11-27 15:32:02
	 * @param analysisDimension analysisDimension
	 * @return int
	 */
    int insert(AnalysisDimension analysisDimension);

    /**
      * 批量新增 on 2019/11/27 17:40
      *
      * @param list list
      * @return int
      */
    int manyInsert(List<AnalysisDimension> list);

	/**
	 * 更新 on 2019-11-27 15:32:02
	 * @param analysisDimension analysisDimension
	 * @return int
	 */
    int update(AnalysisDimension analysisDimension);
}
